package com.yenlien.traceyun.business.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-03-05
 * @description:应用
 **/

@Entity
@Table(name = "t_app")
public class App {

    @Id
    @Column(name = "id", length = 32)
    private String id;

    //应用名称
    @Column(name = "name", length = 30)
    private String name;

    //应用名称
    @Column(name = "description", length = 200)
    private String description;

    //应用名称
    @Column(name = "icon", length = 200)
    private String icon;

    //创建时间
    @Column(name = "createtime")
    private Date createtime;

    //是否启用
    @Column(name = "used", length = 1)
    private boolean used;

    //应用地址
    @Column(name = "url", length = 200)
    private String url;

    //应用类型（1.web,2.app,3.小程序）
    @Column(name = "type", length = 10)
    private String type;

    //应用代码
    @Column(name = "code", length = 20)
    private String code;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public boolean isUsed() {
        return used;
    }

    public void setUsed(boolean used) {
        this.used = used;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
